package com.stedu.mall.orderservice.mapper;

import com.stedu.mall.common.bean.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderServiceMapper {
   //添加订单
   int insert(Order order);
   //删除订单
   int delete(String id);
   //修改
   int update(Order order);

   //通过id查询
   Order selectById(String id);
   //通过userId查询
   List<Order> selectByUserId(Integer userId);
   //查询所有订单
   List<Order> selectAll(Order condition);
}
